package com.atguigu.chapter05

object TestFunction1 {

  def main(args: Array[String]): Unit = {
    def f(s: String):String = {
      return s+ "jinlian"
    }
    println(f("hello"))

    def f8 = "dalang"
    println(f8)

    def f9 = (x:String)=>{println("wusong")}

    def f10(f:String=>Unit) = {
      f("")
    }

    f10(f9)

    println(f10((x:String)=>{println("wusong")}))
  }
}
